package com.mingqijia.gassafety.webserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.mingqijia.gassafety.db.entity.FieldTemplate;
import com.mingqijia.gassafety.db.entity.FileExport;
import com.mingqijia.gassafety.shared.utils.commonUtils.PageUtil;
import com.mingqijia.gassafety.webserver.request.FileExportCreateRequest;
import com.mingqijia.gassafety.webserver.request.FileExportQueryRequest;
import com.mingqijia.gassafety.webserver.response.FileExportResponse;

/**
 * <p>
 * 文件导出相关
 *
 * @author wanghai
 * @since 2022-02-21
 */

public interface FileExportService extends IService<FileExport> {

    /**
     * 创建导出任务
     * @param params
     * @throws JsonProcessingException
     */
    void create(FileExportCreateRequest params, FieldTemplate template );

    /**
     * 查询导出任务
     * @param params
     * @return
     */
    PageUtil<FileExportResponse> getList(FileExportQueryRequest params);

    /**
     * 查询导出任务
     * @param params
     * @return
     */
    PageUtil<FileExportResponse> getPdfList(FileExportQueryRequest params);


}
